package hust.ioic.oa.domain;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

// 评论表
public class Comment {
	private Integer id;
	private Integer operatorId; // 创建者id
	private Timestamp createTime; // 创建时间
	private String content; // 评论内容
	private Integer rdfileId; // 文件id
	private Set<Comment> children = new HashSet<>();
	private Comment parent;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(Integer operatorId) {
		this.operatorId = operatorId;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getRdfileId() {
		return rdfileId;
	}

	public void setRdfileId(Integer rdfileId) {
		this.rdfileId = rdfileId;
	}

	public Set<Comment> getChildren() {
		return children;
	}

	public void setChildren(Set<Comment> children) {
		this.children = children;
	}

	public Comment getParent() {
		return parent;
	}

	public void setParent(Comment parent) {
		this.parent = parent;
	}

}
